package me.zhengjie.minbearwcs.dao.rework.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.rework.inf.ReworkOrderHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.rework.ReworkOrderHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.rework.history.ReworkOrderHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class ReworkOrderHistoryDaoImpl implements ReworkOrderHistoryDao {

    private final ReworkOrderHistoryMapper mapper;

    @Override
    public boolean insert(ReworkOrderHistory reworkOrderHistory) {
        return mapper.insert(reworkOrderHistory) == 1;
    }
}
